<div id="left-content">
    <div id="summary-per-year" class="content-block" >
        <div class="block-header">ចំនួនសរុបប្រចាំឆ្នាំ</div>
        <div id="block-content">
            <table id="data-table" class="no-header">
                <tr>
                    <th>- ចំនួនព្រះរាជក្រឹត្យ/អនុក្រឹត្យ៖</th>
                    <td align="right" valign="middle"><?php echo $officialOrderAmount; ?></td>
                </tr>
                <tr>
                    <th>- ចំនួនមេដាយដែលចែក៖</th>
                    <td align="right" valign="middle"><?php echo $medalOrderAmount; ?></td>
                </tr>
                <tr>
                    <th>- ចំនួនមន្រ្តីដែលបានទទួល៖</th>
                    <td align="right" valign="middle"><?php echo $medalReceiptAmount; ?></td>
                </tr>
                <tr>
                    <th>- ចំនួនមេដាយក្នុងស្តុកបច្ចុប្បន្ន៖</th>
                    <td align="right" valign="middle"><?php echo $medalStockInAmount; ?></td>
                </tr>
                <tr>
                    <th>- ចំនួនប័ណ្ណបញ្ចេញឃ្លាំង៖</th>
                    <td align="right" valign="middle"><?php echo $medalStockIssueAmount; ?></td>
                </tr>
            </table>
        </div>
        <div class="clear"></div>
    </div>

    <!-- ព្រះរាជក្រឹត្យ information  -->
    <div id="official-order" class="content-block">
        <div class="block-header">ព្រះរាជក្រឹត្យថ្មីៗ
            <div class="right"><a href="<?= site_url('/official_order') ?>">មើលបន្ថែម...</a></div>
        </div>
        <div id="block-content">
            <table id="data-table">
                <tr>
                    <th class="index-col">ល.រ</th>
                    <th class="head">លេខក្រឹត្យ</th>
                    <th class="head">កាលបរិច្ឆេទ</th>
                    <th class="head">ស្ថានភាព</th>
                </tr>
                <?php
                $i = 0;
                foreach ($newOfficialOrders as $newOfficialOrder) {
                    ?>
                    <tr>
                        <td><?php echo++$i; ?></td>
                        <td><a href="#"><?php echo $newOfficialOrder['Order_Number']; ?></a></td>
                        <td><?php echo date("d/m/Y", strtotime($newOfficialOrder['date'])); ?> </td>
                        <td><?php echo $newOfficialOrder['name']; ?></td>
                    </tr>
                <?php } ?>
            </table>
        </div>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
    <!-- ប័ណ្ណបញ្ចេញឃ្លាំងថ្មីៗ information  -->
    <div id="newest-stocissue" class="content-block">
        <div class="block-header">ប័ណ្ណបញ្ចេញឃ្លាំងថ្មីៗ
            <div class="right"><a href="<?= site_url('/admin_stock/issue') ?>">មើលបន្ថែម...</a></div>
        </div>
        <div id="block-content">
            <table id="data-table">
                <tr>
                    <th class="index-col">ល.រ</th>
                    <th class="head">លេខប័ណ្ណ</th>
                    <th class="head">កាលបរិច្ឆេទ</th>
                </tr>
                <?php
                $i = 0;
                foreach ($newMedalIssues as $newMedalIssue) {
                    ?>
                    <tr>
                        <td><?php echo++$i; ?></td>
                        <td><?php echo $newMedalIssue['issue_number']; ?></td>
                        <td><?php echo date("d/m/Y", strtotime($newMedalIssue['date'])); ?></td>
                    </tr>
                <?php } ?>
            </table>
        </div>
        <div class="clear"></div>
    </div>

    <!-- ព្រះរាជក្រឹត្យឋិតក្នុងការតាមដាន information  -->
    <div id="official-tracked" class="content-block">
        <div class="block-header">ព្រះរាជក្រឹត្យឋិតក្នុងការតាមដាន
            <div class="right"><a href="<?= site_url('/official_order/index/2') ?>">មើលបន្ថែម...</a></div>
        </div>
        <div id="block-content">
            <table id="data-table">
                <tr>
                    <th class="index-col">ល.រ</th>
                    <th class="head">លេខក្រឹត្យ</th>
                    <th class="head">កាលបរិច្ឆេទ</th>
                    <th class="head">ស្ថានភាព</th>
                </tr>

                <?php
                $i = 0;
                foreach ($officialFollowups as $officialFollowup) {
                    ?>
                    <tr>
                        <td><?php echo++$i; ?></td>
                        <td><a href="#"><?php echo $officialFollowup['Order_Number']; ?></a></td>
                        <td><?php echo date("d/m/Y", strtotime($officialFollowup['date'])); ?> </td>
                        <td>តាមដាន</td>
                    </tr>
                <?php } ?>
            </table>
        </div>
        <div class="clear"></div>
    </div>
</div>
<!--<div id="related-activity" class="content-block right">
        <div class="block-header">ប្រតិបត្តិសំខាន់ៗ</div>
    <div id="block-content"></div>
</div>-->